import { Directive, ElementRef, Renderer2, OnInit } from '@angular/core';

@Directive({
  selector: '[appGridTitle]',
})
export class GridTitleDirective implements OnInit {
  constructor(private el: ElementRef, private rd2: Renderer2) {}
  ngOnInit(): void {
    this.rd2.setStyle(this.el.nativeElement, 'grid-area', 'title');
  }
}
